const path = require('path');
const nodeExternals = require('webpack-node-externals');

module.exports = {
  target: 'electron-main',
  entry: ['./src/main.ts'],
  output: {
    path: path.join(__dirname, '../dist/backend'),
    filename: 'main.js',
  },
  externals: [nodeExternals()],
  resolve: {
    extensions: ['.ts', '.tsx', '.js', '.json'],
  },
};
